Delete Method (AddressEntry Object) 

The Delete method deletes the specified address from the address book.

 

Note  The OLE Messaging Library supports the Delete method only for the personal address book.

 

Syntax

objAddressEntry.Delete()

Parameters

objAddressEntry

Required. The AddressEntry object.

 

Remarks

The Delete method fails if both the Address and ID properties are empty.

Example

Function AddressEntry_Delete()

    ' error handling here...

    If objAddrEntry Is Nothing Then

        MsgBox "must select an AddressEntry object"

        Exit Function

    End If

    objAddrEntry.Delete

    Set objAddrEntry = Nothing

    Exit Function

    ' error handling

End Function

 

See Also

Add Method (Recipients Collection)8ETUGE